<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>JSON</title>
	</head>
	<body>
		<h1>JSON对象创建</h1>
		<script>
			person = {
				name:"Bob",
				age: 20,
				addr:{
					homeAddr:"火星",
					workAddr:"木星"
				}
			};
			alert(person.addr.homeAddr);
			alert(person["age"]);
			students=[
			{name:"Q",age:"0"},
			{name:"W",age:"1"}
			]
			alert(students[1].age)	
		</script>
	</body>
</html>
